package javaCode.chapter09.innerclass.Exercise;

public class Exercise01 {
    public static void main(String[] args) {

        Test test = new Test(); //5
        Test.Inner inner = test.new Inner();
        System.out.println(inner.n1); //5
    }
}

class Test{
    public Test() {
        Inner inner1 = new Inner();
        inner1.n1 = 10;
        Inner inner2 = new Inner();
        System.out.println(inner2.n1);
    }

    class Inner{
        public int n1 = 5;
    }

    public static void main(String[] args) {

        Inner inner = new Test().new Inner();

    }
}